#
# $Id$
#

@SET_MAKE@
srcdir = @srcdir@
VPATH = @srcdir@
RTEMS_ROOT = @top_srcdir@
PROJECT_ROOT = @PROJECT_ROOT@

include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/leaf.cfg
include $(RTEMS_ROOT)/make/rtems.cfg

DESTDIR=$(PROJECT_RELEASE)/tests

BUILD_PGMS = runtest
PGMS = $(BUILD_PGMS)

CLEAN_ADDITIONS += $(BUILD_PGMS)

INSTALLED_PGMS=$(PGMS:%=$(DESTDIR)/%)

all:	$(DESTDIR) $(PGMS) install

$(DESTDIR):
	@INSTALL@ $(INSTDIRFLAGS) $@

$(INSTALLED_PGMS): $(PGMS)
	@INSTALL@ $(INSTBINFLAGS) $^ $(DESTDIR)

install: $(DESTDIR) $(INSTALLED_PGMS)
